package com.cn.jinl.domain;

import com.cn.jinl.utils.CommonUtil;
import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.List;
import java.util.Map;

public class ComplainHandle {
    private String id;

    private String customer;

    private String complainCode;

    private String complainDate;

    private String acceptStatus;

    private String orderNum;

    private String acceptDeptName;

    private String batchNum;

    private String acceptUserName;

    private String acceptDate;

    private String problemDescription;

    private String opinion;

    private String reasonAnalysis;

    private String responsibleDeptName;

    private String responsibleUserName;

    private String handleDeptName;

    private String handleUserName;

    private String handleTime;

    private String replyUserName;

    private String replyTime;

    private Date createTime;

    private Date updateTime;

    private String status;


    private String userId;
    private List<FileInfo> fileInfos;


    public static final transient Map<String,String> ACCEPTSTATUS = ImmutableMap.of("0","待处理","1","待回复","2","已完成");

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public List<FileInfo> getFileInfos() {
        return fileInfos;
    }

    public void setFileInfos(List<FileInfo> fileInfos) {
        this.fileInfos = fileInfos;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getCustomer() {
        return customer;
    }

    public void setCustomer(String customer) {
        this.customer = customer == null ? null : customer.trim();
    }

    public String getComplainCode() {
        return complainCode;
    }

    public void setComplainCode(String complainCode) {
        this.complainCode = complainCode == null ? null : complainCode.trim();
    }

    public String getComplainDate() {
        return complainDate;
    }

    public void setComplainDate(String complainDate) {
        this.complainDate = complainDate == null ? null : complainDate.trim();
    }

    public String getAcceptStatus() {
        return acceptStatus;
    }

    public String getAcceptStatusCn() {
        return ACCEPTSTATUS.get(getAcceptStatus());
    }

    public void setAcceptStatus(String acceptStatus) {
        this.acceptStatus = acceptStatus == null ? null : acceptStatus.trim();
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum == null ? null : orderNum.trim();
    }

    public String getAcceptDeptName() {
        return acceptDeptName;
    }

    public void setAcceptDeptName(String acceptDeptName) {
        this.acceptDeptName = acceptDeptName == null ? null : acceptDeptName.trim();
    }

    public String getBatchNum() {
        return batchNum;
    }

    public void setBatchNum(String batchNum) {
        this.batchNum = batchNum == null ? null : batchNum.trim();
    }

    public String getAcceptUserName() {
        return acceptUserName;
    }

    public void setAcceptUserName(String acceptUserName) {
        this.acceptUserName = acceptUserName == null ? null : acceptUserName.trim();
    }

    public String getAcceptDate() {
        return acceptDate;
    }

    public void setAcceptDate(String acceptDate) {
        this.acceptDate = acceptDate == null ? null : acceptDate.trim();
    }

    public String getProblemDescription() {
        return problemDescription;
    }

    public void setProblemDescription(String problemDescription) {
        this.problemDescription = problemDescription == null ? null : problemDescription.trim();
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion == null ? null : opinion.trim();
    }

    public String getReasonAnalysis() {
        return reasonAnalysis;
    }

    public void setReasonAnalysis(String reasonAnalysis) {
        this.reasonAnalysis = reasonAnalysis == null ? null : reasonAnalysis.trim();
    }

    public String getResponsibleDeptName() {
        return responsibleDeptName;
    }

    public void setResponsibleDeptName(String responsibleDeptName) {
        this.responsibleDeptName = responsibleDeptName == null ? null : responsibleDeptName.trim();
    }

    public String getResponsibleUserName() {
        return responsibleUserName;
    }

    public void setResponsibleUserName(String responsibleUserName) {
        this.responsibleUserName = responsibleUserName == null ? null : responsibleUserName.trim();
    }

    public String getHandleDeptName() {
        return handleDeptName;
    }

    public void setHandleDeptName(String handleDeptName) {
        this.handleDeptName = handleDeptName == null ? null : handleDeptName.trim();
    }

    public String getHandleUserName() {
        return handleUserName;
    }

    public void setHandleUserName(String handleUserName) {
        this.handleUserName = handleUserName == null ? null : handleUserName.trim();
    }

    public String getHandleTime() {
        return handleTime;
    }

    public void setHandleTime(String handleTime) {
        this.handleTime = handleTime == null ? null : handleTime.trim();
    }

    public String getReplyUserName() {
        return replyUserName;
    }

    public void setReplyUserName(String replyUserName) {
        this.replyUserName = replyUserName == null ? null : replyUserName.trim();
    }

    public String getReplyTime() {
        return replyTime;
    }

    public void setReplyTime(String replyTime) {
        this.replyTime = replyTime == null ? null : replyTime.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public String getCreateTimeFt() {
        String formatTime = CommonUtil.getStrTime(getCreateTime(),"yyyy-MM-dd HH:mm:ss");
        return formatTime;
    }

    public String getCreateTimePDF() {
        String formatTime = CommonUtil.getStrTime(getCreateTime(),"yyyy-MM-dd");
        return formatTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }
}